package org.budo.cmbc.sdk.entity;

import java.io.Serializable;

import org.budo.xml.XmlObject;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author zq
 */
@Getter
@Setter
@NoArgsConstructor
@ToString
public class B2eElectNoteInfo implements Serializable {
    private static final long serialVersionUID = 7433891211607753228L;

    private String svrId;

    private String innerNo;

    private String FileName;

    private String AcNo;

    private String TrsDate;

    private String BillName;

    private String PrintCount;

    public B2eElectNoteInfo(XmlObject xmlObject) {
        this.setSvrId(xmlObject.getChildNodeTextContentByName("svrId"));
        this.setInnerNo(xmlObject.getChildNodeTextContentByName("innerNo"));
        this.setFileName(xmlObject.getChildNodeTextContentByName("FileName"));
        this.setAcNo(xmlObject.getChildNodeTextContentByName("AcNo"));
        this.setPrintCount(xmlObject.getChildNodeTextContentByName("PrintCount"));
        this.setTrsDate(xmlObject.getChildNodeTextContentByName("TrsDate"));
        this.setBillName(xmlObject.getChildNodeTextContentByName("BillName"));
    }
}
